﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp3
{
    public partial class EditForm : Form
    {
        public EditForm(int articles)
        {
            InitializeComponent();
        }

        public EditForm(int Articles, int Author, int reatedTime, int Title)
        {
            this.Articles = Articles;
            txtUserName.Text = Author.ToString();
            txtPassWord.Text = reatedTime.ToString();
            txtRetryPassWord.Text = Title.ToString();
        }

        public EditForm(int articles, string author, int reatedTime, int title) : this(articles)
        {
            this.author = author;
            this.reatedTime = reatedTime;
            this.title = title;
        }

        public EditForm()
        {
        }

        private int Articles;
        private string author;
        private int reatedTime;
        private int title;


        /// <summary>
        /// 确实保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        ///取消
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
